import request from "@/utils/request.js"

export default {
	// 获取更新日志列表
	async versionList(data) {
		return await request({
			url: "/index/Version/version_list",
			data: data,
			method: 'POST'
		})
	},
	// 获取更新日志详情
	async versionDetail(data) {
		return await request({
			url: "/index/Version/version_detail",
			data: data,
			method: 'POST'
		})
	},
	// 获取最新版本信息
	async latestVersion(data) {
		return await request({
			url: "/index/Version/get_version",
			data: data,
			method: 'POST'
		})
	},
	// 获取最新版本信息
	async saveDeviceData(data) {
		return await request({
			url: "/index/UserDevice/device_add",
			data: data,
			method: 'POST'
		})
	}
}
